/*#include<stdio.h>
int main()
{
int a = 1;
int b = 2;
int c = (a > b, a = b + 10, b = a + 1);
if (a = b + 1, c = a / 2, d > 0)
a = get_val()
count_val(a);
while (a>0)
{
a = get_val();
count_vai(a);
}
whule(a + get_val(), count_val(a), a > 0)
{

}

int arr[10];
arr[9] = 10;

}





#include<stdio.h>
void test1()
{
printf("hehe\n");
}
void test2(const char*str)
{
printf("%s\n", str);
}
int main()
{
test1();
test2("hello bit.");
return 0;
}

*/


#include<stdio.h>
struct stu
{
	char name[10];
	int age;
	char sex[5];
	double score;
};

void set_age1(struct Stu stu)
{
	stu.age = 18;
}
void set_age2(struct Stu* pStu)
{
	pStu->age = 18;
}
int main()
{
	struct Stu stu;
	struct Stu* pStu = &stu;

	stu.age = 20;
	set_age1(stu);

	pStu->age = 20;
	set_age2(pStu);
	return 0;
}